package com.hzlx.productionProducts.feign;

import com.hzlx.MesBatchesMaterialDto;
import com.hzlx.MesMaterialTransactionsDto;
import com.hzlx.productionProducts.feign.RollBack.baseDataServiceFallbackFactory;
import com.hzlx.productionProducts.feign.RollBack.materialServiceFallbackFactory;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "materialService",value="material-service")
public interface materialService {
    @PutMapping("/inventory/batchDtosByOperation")
    public AjaxResult editByOperation(@RequestBody MesBatchesMaterialDto mesBatchesMaterialDto);
    @PostMapping("/inventory/transactionsDto")
    public AjaxResult addByRecord(@RequestBody MesMaterialTransactionsDto mesMaterialTransactionsDto);
}
